package com.gwc.yy.liuxue.entity;

import java.util.Date;
import java.util.List;

import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.google.common.collect.Lists;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;
import com.thinkgem.jeesite.modules.sys.entity.Office;
import com.thinkgem.jeesite.modules.sys.entity.Role;
import com.thinkgem.jeesite.modules.sys.entity.User;

public class Student extends User {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 顾问
	 */
	private User adviser;
	
	public User getAdviser() {
		return adviser;
	}

	public void setAdviser(User adviser) {
		this.adviser = adviser;
	}
	public Student(){
		
	}
	public Student(User user){
		this.id=user.getId();
		this.setCompany(user.getCompany());
		this.setOffice(user.getOffice());
		this.setLoginName(user.getLoginName());
		this.setPassword(user.getPassword());
		this.setNo(user.getNo());
		this.setName(user.getName());
		this.setEmail(user.getEmail());
		this.setPhone(user.getPhone());
		this.setMobile(user.getMobile());
		this.setUserType(user.getUserType());
		this.setLoginIp(user.getLoginIp());
		this.setLoginDate(user.getLoginDate());
		this.setLoginFlag(user.getLoginFlag());
		this.setPhone(user.getPhoto());
		this.setOldLoginName(user.getOldLoginName());
		this.setOldLoginDate(user.getOldLoginDate());
		this.setRole(user.getRole());
		this.setRoleList(user.getRoleList());
		this.setCreateBy(user.getCreateBy());
		this.setCreateDate(user.getCreateDate());
		this.setDelFlag(user.getDelFlag());
		this.setUpdateBy(user.getUpdateBy());
		this.setUpdateDate(user.getUpdateDate());
		this.setCurrentUser(user.getCurrentUser());
		this.setIsNewRecord(user.getIsNewRecord());
	}
}
